run:
	@echo "Running the application..."; \
	trap 'exit 0' INT; \
	FLARE_MODE=local go run .

sqlc:
	sqlc generate
migrate-up:
	migrate -path db/migration -database "postgresql://postgres:secret@localhost:5432/tracing?sslmode=disable" -verbose up

migrate-up-aliyun:
	migrate -path db/migration -database 'postgresql://postgres:Z1p5qq30!e@101.37.229.179:5800/flare?sslmode=disable' -verbose up

migrate-down-aliyun:
	migrate -path db/migration -database 'postgresql://postgres:Z1p5qq30!e@101.37.229.179:5800/flare?sslmode=disable' -verbose down